import emojiList from './emojiList.json'

export default function filterEmoji(searchText,len) {
  return emojiList.filter(emoji => {
    //
    if (emoji.title.toLowerCase().includes(searchText.toLowerCase())) {
      return true
    }
    return emoji.keywords.toLowerCase().includes(searchText.toLowerCase());
  }).slice(0, len);

}
